home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / web / clip / unix / cl.csh < prev    next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1993-11-16  |  511 b   |  24 lines

  1. #! /bin/csh
  2. #  cl.csh
  3. #  CLIP Cshellscript equiv to CL.BAT
  4. #  Assumption: clip has been installed in directory ~/clip
  5.  
  6.  
  7. echo ".....Run CLiP with already existing INI-file....."
  8. set CLIP_DIR = ~/clip
  9. unalias rm
  10. unalias cp
  11.  
  12. # Copy existing argument to CLIP.INI. Notify non-existing argument.
  13. if ($1 != '') then
  14.               if (-e $1) then
  15.           cp $1 CLIP.INI
  16.           else
  17.           echo Filename  $1  in directory $PWD does not exist!
  18.           echo NOT executing ....
  19.           exit
  20.           endif
  21. endif
  22.  
  23. $CLIP_DIR/clip
  24.